package org.aeon.entity;

import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

import java.io.Serial;
import java.io.Serializable;

/**
 * @author: MissingAeon
 * @date: 2024/1/26 12:41
 * @description:
 */
@Data
@AllArgsConstructor
@NoArgsConstructor
public class ChatMessage implements Serializable {
    @Serial
    private static final long serialVersionUID = -7813004368946902635L;

    private String content;
    private long creationTime;
    private long from;              // 来自(负数为群聊，正数为个人聊天)，若为0，则是自己未成功发送的信息
    private long to;                // 到(负数为群聊，正数为个人聊天)
}
